package com.xiaozhichao.javaapi.base.string;

import org.junit.Test;

import java.text.MessageFormat;

public class MessageFormatDemo {

    @Test
    public void parse(){
        String str = "insert into {0} value (\"{1}\",{2})";
        String sql = MessageFormat.format(str,"table","aa","bb");
        System.out.println(sql);
    }
}
